import request from "@/utils/request"

export function listApplication(query) {
  return request({
    url: "/fm/ra/list",
    method: "get",
    params: query
  })
}
export function getApplication(id) {
  return request({
    url: "/fm/ra/get/" + id,
    method: "get"
  })
}
export function addApplication(formData) {
  return request({
    url: "/fm/ra/add",
    method: "post",
    data: formData,
    headers: { "Content-Type": "multipart/form-data" }
  })
}
export function updateApplication(formData) {
  return request({
    url: "/fm/ra/edit",
    method: "put",
    data: formData,
    headers: { "Content-Type": "multipart/form-data" }
  })
}
export function delApplication(id) {
  return request({
    url: "/fm/ra/del/" + id,
    method: "delete"
  })
}
